﻿@using System.Buffers
@using Project.Web.Shared.Components
@using System.Diagnostics.CodeAnalysis
@using Project.Web.Shared.Routers
@* @inherits AppComponentBase *@
@* @if (Context != null) *@
@* { *@
@* } *@
<ScrollBar>
    <ErrorCatcher ShowMessage>
        <!-- 在路由页面中获取当前页的信息 -->
        @ChildContent
        @* <AuthorizeView>
            <Authorized>
            </Authorized>
            <NotAuthorized>
                未授权
            </NotAuthorized>
        </AuthorizeView> *@
    </ErrorCatcher>
</ScrollBar>

@code {
    [Parameter] public RenderFragment? ChildContent { get; set; }
}
